#ifndef GAMEOBJECT_H
#define GAMEOBJECT_H

#include <QGraphicsPixmapItem>
#include<QtDebug>
#include<QGraphicsScene>
#include<QGraphicsView>
#include<QTimer>
#include<QList>

class GameObject : public QGraphicsPixmapItem
{

public:
    enum ObjectType
    {
        QT_Enemyfalling,
        QT_mplayer
    };


    explicit GameObject(QObject *parent = nullptr);

    int GetType()
    {
        return mObjectType;
    }

    //对象回收
    void GameObjectDelete(QGraphicsScene* _scene);

protected:
    int mObjectType;


};

#endif // GAMEOBJECT_H
